Skip to content

Keep Claude turns active through background continuations - #411

Merged
cfal merged 7 commits into
mainfrom
claude-stuck-turn-investigation
Jul 27, 2026
Merged

Keep Claude turns active through background continuations#411
cfal merged 7 commits into
mainfrom
claude-stuck-turn-investigation

Conversation

@cfal

@cfal cfal commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Claude can emit an intermediate result and idle state while background shell work may still resume the agent, causing Garcon to mark chats idle, release queue and fork ownership, and discard later output. This change tracks Claude background task snapshots alongside session-state events, keeps the originating turn active through provider-owned continuations, preserves failure and interrupt behavior, and retires interrupted processes before starting the next turn so queued messages and forks cannot race the native session.

@cfal
cfal marked this pull request as ready for review July 27, 2026 07:51
@cfal
cfal merged commit 2899ddc into main Jul 27, 2026
11 of 12 checks passed
@cfal
cfal deleted the claude-stuck-turn-investigation branch July 27, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant